package org.farms.algo;

import java.util.Comparator;

public class StrategyPointComparator implements Comparator<StrategyPoint> {

	@Override
	public int compare(StrategyPoint pointOne, StrategyPoint pointTwo) {
		if (pointOne.getRating() > pointTwo.getRating()) {
			return -1;
		}
		if (pointOne.getRating() < pointTwo.getRating()) {
			return 1;
		}
		return 0;
		//return (int)(pointOne.getRating() - pointTwo.getRating());
	}

}
